<?php
	require_once('DataBase.php');
	$journey_id = $_GET['journey_id'];
	$var = array();
	$sql=<<<SQL
	SELECT  *
	FROM journey
    WHERE journey_id = '0'
	ORDER BY id 
SQL;
	$result = mysql_query($sql);
	//$row = mysql_fetch_array($result);
	while($obj = mysql_fetch_object($result)) {
$var[] = $obj;

}

echo '{"data":'.json_encode($var).'}';

	//$data = $result -> fetch( PDO::FETCH_ASSOC );
	//$json['data'] = $row;
		//echo  json_encode($json);




?>